<?php 
/* SVN FILE: $Id$ */
/* CompanyType Test cases generated on: 2009-11-08 14:35:18 : 1257690918*/
App::import('Model', 'CompanyType');

class CompanyTypeTestCase extends CakeTestCase {
	var $CompanyType = null;
	var $fixtures = array('app.company_type', 'app.company');

	function startTest() {
		$this->CompanyType =& ClassRegistry::init('CompanyType');
	}

	function testCompanyTypeInstance() {
		$this->assertTrue(is_a($this->CompanyType, 'CompanyType'));
	}

	function testCompanyTypeFind() {
		$this->CompanyType->recursive = -1;
		$results = $this->CompanyType->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('CompanyType' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>